package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import play.data.validation.MaxSize;
import play.data.validation.MinSize;
import play.data.validation.Required;
import play.db.jpa.Model;
/**
 * 章节、段落
 * @author MrROY
 *
 */
@Entity
@Table(name="T_SECTION")
public class Section extends Model {
	@Required
	@MinSize(8)
	@MaxSize(1000)
	public String content;
	public Date pdate = new Date();
	@ManyToOne
	public Story story;
	@ManyToOne
	public User user;
}
